<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="wineId" name="wineId" th:value="${wineDO.wineId}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">名称：</label>
                            <div class="col-sm-8">
                                <input id="wineName" name="wineName" th:value="${wineDO.wineName}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">色泽：</label>
                            <div class="col-sm-8">
                                <input id="wineColor" name="wineColor" th:value="${wineDO.wineColor}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">澄清程度：</label>
                            <div class="col-sm-8">
                                <input id="clarify" name="clarify" th:value="${wineDO.clarify}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">起泡程度：</label>
                            <div class="col-sm-8">
                                <input id="blister" name="blister" th:value="${wineDO.blister}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">香气：</label>
                            <div class="col-sm-8">
                                <input id="aroma" name="aroma" th:value="${wineDO.aroma}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">滋味：</label>
                            <div class="col-sm-8">
                                <input id="taste" name="taste" th:value="${wineDO.taste}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">典型性：</label>
                            <div class="col-sm-8">
                                <input id="typicality" name="typicality" th:value="${wineDO.typicality}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">二氧化碳含量：</label>
                            <div class="col-sm-8">
                                <input id="contentCo2" name="contentCo2" th:value="${wineDO.contentCo2}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">含糖量：</label>
                            <div class="col-sm-8">
                                <input id="sugar" name="sugar" th:value="${wineDO.sugar}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">挥发酸含量：</label>
                            <div class="col-sm-8">
                                <input id="volatiles" name="volatiles" th:value="${wineDO.volatiles}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">干浸出物含量：</label>
                            <div class="col-sm-8">
                                <input id="extract" name="extract" th:value="${wineDO.extract}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">酒精度含量：</label>
                            <div class="col-sm-8">
                                <input id="alcoho" name="alcoho" th:value="${wineDO.alcoho}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">柠檬酸含量：</label>
                            <div class="col-sm-8">
                                <input id="lemon" name="lemon" th:value="${wineDO.lemon}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">甲醛含量：</label>
                            <div class="col-sm-8">
                                <input id="hcho" name="hcho" th:value="${wineDO.hcho}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">铁含量：</label>
                            <div class="col-sm-8">
                                <input id="iron" name="iron" th:value="${wineDO.iron}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">铜含量：</label>
                            <div class="col-sm-8">
                                <input id="steel" name="steel" th:value="${wineDO.steel}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">苯甲酸（钠）含量：</label>
                            <div class="col-sm-8">
                                <input id="benzoic" name="benzoic" th:value="${wineDO.benzoic}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">山梨酸（钾）含量：</label>
                            <div class="col-sm-8">
                                <input id="sorbic" name="sorbic" th:value="${wineDO.sorbic}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否合格 0 不合格 1 合格：</label>
                            <div class="col-sm-8">
                                <select name="status" class="form-control" th:if="${wineDO.status} eq 0">
                                    <option value="0" selected>
                                        不合格
                                    </option>
                                    <option value="1">
                                        合格
                                    </option>
                                </select>
                                <select name="status" class="form-control" th:if="${wineDO.status} eq 1">
                                    <option value="0" >
                                        不合格
                                    </option>
                                    <option value="1" selected>
                                        合格
                                    </option>
                                </select>
                                <select name="status" class="form-control" th:if="${wineDO.status} eq null">
                                    <option value="3" selected>
                                        -
                                    </option>
                                    <option value="0">
                                        不合格
                                    </option>
                                    <option value="1">
                                        合格
                                    </option>
                                </select>
                                <select name="status" class="form-control" th:if="${wineDO.status} eq 3">
                                    <option value="3" selected>
                                        -
                                    </option>
                                    <option value="0">
                                        不合格
                                    </option>
                                    <option value="1">
                                        合格
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="button" onclick="save(1)" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/blog/wine/edit.js">

</script>
</body>
</html>
